#!/usr/bin/env ruby

require "bundler/setup"
require "html-proofer"

url_ignores = [
  %r{^https://github.com/github/opensource.guide},
  "https://karissa.github.io/post/okf-de",
  "https://this-week-in-rust.org/",
  "https://www.vagrantup.com/",
  "https://www.quora.com/",
]

HTMLProofer::Runner.new(
  ["_site"],
  parallel: { in_threads: 4 },
  type: :directory,
  url_ignore: url_ignores,
  check_html: true,
  check_opengraph: true,
  check_img_http: true,
  favicon: true,
  assume_extension: true,
  http_status_ignore: [0]
).run
